<template>
	<t-index-address @select="select"></t-index-address>
</template>

<script>
	export default {
		data() {
			return {}
		},
		onLoad() {},
		methods: {
			select(data) {
				const city = data.name;
				getApp().globalData.city = city
				uni.setStorageSync("city", city);
				uni.switchTab({
					url: `/pages/index/index?city=${ city }`
				})
			}
		}
	}
</script>

<style scoped>
	.divider {
		width: 100%;
		height: 1rpx;
		background-color: #999;
	}

	.big-city {
		padding: 30rpx;
		font-size: 35rpx;
	}

	.small-city {
		padding: 30rpx;
		font-size: 28rpx;
		color: #999;
	}
</style>
